package cn.xyinping.org.domain;

import cn.xyinping.basic.domain.BasicDomain;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 27266
 * @desrciption
 * @date 2021/10/17
 */
@Data // getter，setter，toString。。。
public class Department extends BasicDomain{
    private String sn;
    private String name;
    private String dirPath;
    private Integer state;
    private Long manager_id;
    // 管理员
    private Employee manager;
    private Long parent_id;
    // 上级部门
    private Department parent;
    // 子级
    private List<Department> children = new ArrayList<>();
}
